<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>LOST&FOUND</title>
  <link rel="stylesheet" href="../layui/css/gcylayui.css" media="all">
  <script type="text/javascript" src="../layui/layui.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <a href="gcyindex.html" title="lost&found" class="logo">
      <img src="../layui/images/logo(1).png"></a>
<!--    <div class="layui-logo">lost&found</div>-->
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="../layui/images/avatar.jpg" class="layui-nav-img">
          Gou C.Y.
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          
        </dl>
      </li>
      <li class="layui-nav-item"><a href="">退出</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">

        <li class="layui-nav-item">
          <a href="javascript:;">lost&found</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">寻物lost</a></dd>
            <dd><a href="javascript:;">招领found</a></dd>
          </dl>
        </li>

      </ul>
    </div>
  </div>
  
  <div id="main" class="layui-body">
    <!-- 内容主体区域 -->
    
  </div>
  
  <div class="layui-footer" >
    <!-- 底部固定区域 -->
    <span style="font-size: small; color: white; ">from  写完代码就回家</span>
  </div>
</div>

<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
  var $ = layui.jquery;
	$("a").click(function(){
		//alert($(this).text());
		var text = $(this).text()
		if(text=="寻物lost"){
			$("#main").find("#ifr").remove();
			$("#main").append('<iframe src="./gcy_userManagement.html" id="ifr" style="width:100%;height:100%"></iframe>');
		}else if(text=="招领found"){
			$("#main").find("#ifr").remove();
			$("#main").append('<iframe src="./gcy_user_register.html" id="ifr" style="width:100%;height:100%"></iframe>');
		}
	})
});
</script>
</body>
</html>